@extends('common/public')
@section('title','分页')
@section('cnt')
<table class="table table-hover">
    <thead>
        <tr>
            <th>ID</th>
            <th>用户名</th>
            <th>日期</th>
        </tr>
    </thead>
    <tbody>
        @foreach ($data as $item)
        <tr>
            <td>{{ $item->id }}</td>
            <td>{{ $item->username }}</td>
            <td>{{ $item->show_dt }}</td>
        </tr>
        @endforeach
    </tbody>
</table>
{{ $data->appends(request()->except(['key']))->links() }}
@endsection